package com.ax.associator.shopassistant.dao;

import org.apache.ibatis.annotations.Param;

import com.ax.base.system.domain.SysUserDO;

/**
 * @Author Lg
 * @Date 2018/8/31 16:56
 * @Content
 */
public interface SysUserMapper {

    /**
     * 将店员新增为用户
     * @param sysUserDO
     * @return
     */
    Integer insertSysUser(SysUserDO sysUserDO);
    
    
    /**
     * 登录获取用户
     * 
     * @param String password,String userName
     * 
     * @return sysUserDO
     */
    SysUserDO querySysUserDO(@Param("password") String password,@Param("username") String username);
    
    /**
     * 登录获取用户信息(医生)
     * 
     * @param String password,String userName
     * 
     * @return sysUserDO
     */
    SysUserDO queryDoctorInfo(@Param("username") String username,@Param("password") String password);
    
    /**
     * 登录获取用户信息(药师)
     * 
     * @param String password,String userName
     * 
     * @return sysUserDO
     */
    SysUserDO queryPharmacistInfo(@Param("username") String username,@Param("password") String password);
    
    /**
     * 登录获取用户信息(药店)
     * 
     * @param String password,String userName
     * 
     * @return sysUserDO
     */
    SysUserDO queryStoreInfo(@Param("username") String username,@Param("password") String password);
    
    /**
     * 登录获取用户信息(药监)
     * 
     * @param String password,String userName
     * 
     * @return sysUserDO
     */
    SysUserDO querySpdaInfo(@Param("username") String username,@Param("password") String password);
    
    
}
